import http from "./request.js"
async function getIndex(params){
	// console.log(params);
	console.log(params);
	let {data}=await http({
		url:"/api/index",
		data:params
		
	})
	return data
}

async function getList(params){
	// console.log(params);
	console.log(params);
	let {data}=await http({
		url:"/api/goods",
		data:params
		
	})
	return data
}

async function getDetail(params){
	// console.log(params);
	console.log(params);
	let {data}=await http({
		url:"/api/goods/"+params.id,
	
		
	})
	return data
}


export {getIndex,getList,getDetail}